﻿using System;
using System.Xml.Linq;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using HigLabo.Net.Extensions;

namespace HigLabo.Net.Twitter
{
    /// <summary>
    /// 
    /// </summary>
    public class Sizes : ResponseObject
    {
        /// <summary>
        /// 
        /// </summary>
        public Size ThumbnailSize { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public Size LargeSize { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public Size MediumSize { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public Size SmallSize { set; get; }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="jsonText"></param>
        public Sizes(String jsonText)
        {
            var d = this.SetData(jsonText);
            this.ThumbnailSize = new Size(d.ToString("thumb"));
            this.LargeSize = new Size(d.ToString("large"));
            this.MediumSize = new Size(d.ToString("medium"));
            this.SmallSize = new Size(d.ToString("small"));
        }
        
    }
}
